import mylist.MyArrayList;
public class Main {
    public static void main(String[] args) {
        MyArrayList<Integer> myArrayList = new MyArrayList<>();
        myArrayList.add(1);//0
        myArrayList.add(2);//1
        myArrayList.add(199);//2
        myArrayList.display();

        //myArrayList.set(2,88888);

        //myArrayList.display();

        myArrayList.remove(199);
        myArrayList.display();

        myArrayList.clear();
        System.out.println("====");
        myArrayList.display();
    }
}
